package cn.iocoder.yudao.module.reading.controller.app.classes.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * 加入班级 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 加入班级 Request VO")
@Data
public class JoinClassReqVO {

    @Schema(description = "班级口令", requiredMode = Schema.RequiredMode.REQUIRED, example = "208506115")
    @NotBlank(message = "班级口令不能为空")
    @Pattern(regexp = "^[0-9]{9}$", message = "班级口令格式不正确，应为9位数字")
    private String classCode;

}
